package com.example.a79273.shandianban.model;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import org.json.JSONException;
import org.json.JSONObject;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/8/30.
 */
public class StyleActivBean {

    /**
     * error_code : 0
     * error_msg : 获取定制部件成功！
     * total : 71
     * data : [{"cateid":"6bd77b66","name":"左前胸","coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d090.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d0f4.png","href":"",
     * "mark":"","option":"克色"},{"cateid":"6bd77b66","name":"左前胸",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0af.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d11d.png","href":"",
     * "mark":"","option":"深卡其"},{"cateid":"6bd77b66","name":"左前胸",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d11e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d182.png","href":"",
     * "mark":"","option":"宝石兰"},{"cateid":"6bd77b66","name":"左前胸",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d15b.png","href":"",
     * "mark":"","option":"深红紫"},{"cateid":"6bd77b66","name":"左前胸",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d120.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d17b.png","href":"",
     * "mark":"","option":"奶白"},{"cateid":"6bd77b66","name":"左前胸",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/372e869b4e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/372e869b09.png","href":"",
     * "mark":"","option":"早红"},{"cateid":"67186771","name":"右前胸",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d090.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d14d.png","href":"",
     * "mark":"","option":"克色"},{"cateid":"67186771","name":"右前胸",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0af.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d16a.png","href":"",
     * "mark":"","option":"深卡其"},{"cateid":"67186771","name":"右前胸",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d11e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d158.png","href":"",
     * "mark":"","option":"宝石兰"},{"cateid":"67186771","name":"右前胸",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d181.png","href":"",
     * "mark":"","option":"深红紫"},{"cateid":"67186771","name":"右前胸",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d120.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d1d2.png","href":"",
     * "mark":"","option":"奶白"},{"cateid":"67186771","name":"右前胸",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/372e869b4e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/37e11f8331.png","href":"",
     * "mark":"","option":"早红"},{"cateid":"f829184e","name":"后背",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d090.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d1d4.png","href":"",
     * "mark":"","option":"克色"},{"cateid":"f829184e","name":"后背",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0af.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d1b7.png","href":"",
     * "mark":"","option":"深卡其"},{"cateid":"f829184e","name":"后背",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d11e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d1c2.png","href":"",
     * "mark":"","option":"宝石兰"},{"cateid":"f829184e","name":"后背",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d1cd.png","href":"",
     * "mark":"","option":"深红紫"},{"cateid":"f829184e","name":"后背",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d120.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d1d8.png","href":"",
     * "mark":"","option":"奶白"},{"cateid":"f829184e","name":"后背",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/372e869b4e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/372e869ba1.png","href":"",
     * "mark":"","option":"早红"},{"cateid":"e55bdea8","name":"衣领",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d090.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d1bc.png","href":"",
     * "mark":"","option":"克色"},{"cateid":"e55bdea8","name":"衣领",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0af.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d1bd.png","href":"",
     * "mark":"","option":"深卡其"},{"cateid":"e55bdea8","name":"衣领",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d11e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d24a.png","href":"",
     * "mark":"","option":"宝石兰"},{"cateid":"e55bdea8","name":"衣领",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d241.png","href":"",
     * "mark":"","option":"深红紫"},{"cateid":"e55bdea8","name":"衣领",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d120.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d238.png","href":"",
     * "mark":"","option":"奶白"},{"cateid":"e55bdea8","name":"衣领",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/372e869b4e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/372e869ba2.png","href":"",
     * "mark":"","option":"早红"},{"cateid":"5faee3e1","name":"下摆",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d090.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d262.png","href":"",
     * "mark":"","option":"克色"},{"cateid":"5faee3e1","name":"下摆",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0af.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d21e.png","href":"",
     * "mark":"","option":"深卡其"},{"cateid":"5faee3e1","name":"下摆",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d11e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d229.png","href":"",
     * "mark":"","option":"宝石兰"},{"cateid":"5faee3e1","name":"下摆",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d216.png","href":"",
     * "mark":"","option":"深红紫"},{"cateid":"5faee3e1","name":"下摆",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d120.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d235.png","href":"",
     * "mark":"","option":"奶白"},{"cateid":"5faee3e1","name":"下摆",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/372e869b4e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/372e869b7b.png","href":"",
     * "mark":"","option":"早红"},{"cateid":"e5ea5b03","name":"右衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d090.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d2c3.png","href":"",
     * "mark":"","option":"克色"},{"cateid":"e5ea5b03","name":"右衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0af.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d292.png","href":"",
     * "mark":"","option":"深卡其"},{"cateid":"e5ea5b03","name":"右衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d11e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d29d.png","href":"",
     * "mark":"","option":"宝石兰"},{"cateid":"e5ea5b03","name":"右衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d2a8.png","href":"",
     * "mark":"","option":"深红紫"},{"cateid":"e5ea5b03","name":"右衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d120.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d29f.png","href":"",
     * "mark":"","option":"奶白"},{"cateid":"e5ea5b03","name":"右衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/372e869b4e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/372e869b90.png","href":"",
     * "mark":"","option":"早红"},{"cateid":"9ba9c73c","name":"左衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d090.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d28e.png","href":"",
     * "mark":"","option":"克色"},{"cateid":"9ba9c73c","name":"左衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0af.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d28f.png","href":"",
     * "mark":"","option":"深卡其"},{"cateid":"9ba9c73c","name":"左衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d11e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d312.png","href":"",
     * "mark":"","option":"宝石兰"},{"cateid":"9ba9c73c","name":"左衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d2f5.png","href":"",
     * "mark":"","option":"深红紫"},{"cateid":"9ba9c73c","name":"左衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d120.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d2ec.png","href":"",
     * "mark":"","option":"奶白"},{"cateid":"9ba9c73c","name":"左衣袋",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/372e869b4e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/372e869b9b.png","href":"",
     * "mark":"","option":"早红"},{"cateid":"a65e20f6","name":"右臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d090.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d30c.png","href":"",
     * "mark":"","option":"克色"},{"cateid":"a65e20f6","name":"右臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0af.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d2e5.png","href":"",
     * "mark":"","option":"深卡其"},{"cateid":"a65e20f6","name":"右臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d11e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d322.png","href":"",
     * "mark":"","option":"宝石兰"},{"cateid":"a65e20f6","name":"右臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d2dd.png","href":"",
     * "mark":"","option":"深红紫"},{"cateid":"a65e20f6","name":"右臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d120.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d32f.png","href":"",
     * "mark":"","option":"奶白"},{"cateid":"a65e20f6","name":"右臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/372e869b4e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/372e869b9c.png","href":"",
     * "mark":"","option":"早红"},{"cateid":"e0c4404e","name":"左臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d090.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d359.png","href":"",
     * "mark":"","option":"克色"},{"cateid":"e0c4404e","name":"左臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0af.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d364.png","href":"",
     * "mark":"","option":"深卡其"},{"cateid":"e0c4404e","name":"左臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d11e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d33d.png","href":"",
     * "mark":"","option":"宝石兰"},{"cateid":"e0c4404e","name":"左臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d370.png","href":"",
     * "mark":"","option":"深红紫"},{"cateid":"e0c4404e","name":"左臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d120.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d385.png","href":"",
     * "mark":"","option":"奶白"},{"cateid":"e0c4404e","name":"左臂",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/372e869b4e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/372e869b93.png","href":"",
     * "mark":"","option":"早红"},{"cateid":"378e378e","name":"右袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d090.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d355.png","href":"",
     * "mark":"","option":"克色"},{"cateid":"378e378e","name":"右袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0af.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d342.png","href":"",
     * "mark":"","option":"深卡其"},{"cateid":"378e378e","name":"右袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d11e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d343.png","href":"",
     * "mark":"","option":"宝石兰"},{"cateid":"378e378e","name":"右袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d3a8.png","href":"",
     * "mark":"","option":"深红紫"},{"cateid":"378e378e","name":"右袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d120.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d39f.png","href":"",
     * "mark":"","option":"奶白"},{"cateid":"378e378e","name":"右袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/372e869b4e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/372e869ba8.png","href":"",
     * "mark":"","option":"早红"},{"cateid":"e09e4528","name":"左袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d090.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d3f1.png","href":"",
     * "mark":"","option":"克色"},{"cateid":"e09e4528","name":"左袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0af.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d3e8.png","href":"",
     * "mark":"","option":"深卡其"},{"cateid":"e09e4528","name":"左袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d11e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d3ad.png","href":"",
     * "mark":"","option":"宝石兰"},{"cateid":"e09e4528","name":"左袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d3d6.png","href":"",
     * "mark":"","option":"深红紫"},{"cateid":"e09e4528","name":"左袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d120.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2b4d3d7.png","href":"",
     * "mark":"","option":"奶白"},{"cateid":"e09e4528","name":"左袖口",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/372e869b4e.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/372e869bb3.png","href":"",
     * "mark":"","option":"早红"},{"cateid":"f174d2d8","name":"臂章",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0f0.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2c4132d.png","href":"",
     * "mark":"","option":"白色臂章"},{"cateid":"f174d2d8","name":"臂章",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2b4d0e7.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2c41340.png","href":"",
     * "mark":"","option":"黑色臂章"},{"cateid":"417f5308","name":"纽扣",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2c412eb.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2c4133c.png","href":"",
     * "mark":"","option":"塑料纽扣"},{"cateid":"417f5308","name":"纽扣",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2c4130a.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2c41358.png","href":"",
     * "mark":"","option":"木质纽扣"},{"cateid":"417f5308","name":"纽扣",
     * "coustomid":"236000170128",
     * "src":"/Upload/Product/236000170128/36f2c41316.jpg",
     * "srcok":"/Upload/Product/236000170128/Front/36f2c41348.png","href":"",
     * "mark":"","option":"铁质纽扣"}]
     */

    private int error_code;
    private String error_msg;
    private int total;
    /**
     * cateid : 6bd77b66
     * name : 左前胸
     * coustomid : 236000170128
     * src : /Upload/Product/236000170128/36f2b4d090.jpg
     * srcok : /Upload/Product/236000170128/Front/36f2b4d0f4.png
     * href :
     * mark :
     * option : 克色
     */

    private List<DataBean> data;

    public static StyleActivBean objectFromData(String str) {

        return new Gson().fromJson(str, StyleActivBean.class);
    }

    public static StyleActivBean objectFromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);

            return new Gson().fromJson(jsonObject.getString(str),
                    StyleActivBean.class);
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return null;
    }

    public static List<StyleActivBean> arrayStyleActivBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<StyleActivBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public static List<StyleActivBean> arrayStyleActivBeanFromData(String str,
                                                                   String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);
            Type listType = new TypeToken<ArrayList<StyleActivBean>>() {
            }.getType();

            return new Gson().fromJson(jsonObject.getString(str), listType);

        } catch (JSONException e) {
            e.printStackTrace();
        }

        return new ArrayList();


    }

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public String getError_msg() {
        return error_msg;
    }

    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        private String cateid;
        private String name;
        private String coustomid;
        private String src;
        private String srcok;
        private String href;
        private String mark;
        private String option;

        public static DataBean objectFromData(String str) {

            return new Gson().fromJson(str, DataBean.class);
        }

        public static DataBean objectFromData(String str, String key) {

            try {
                JSONObject jsonObject = new JSONObject(str);

                return new Gson().fromJson(jsonObject.getString(str), DataBean.class);
            } catch (JSONException e) {
                e.printStackTrace();
            }

            return null;
        }

        public static List<DataBean> arrayDataBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<DataBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public static List<DataBean> arrayDataBeanFromData(String str, String key) {

            try {
                JSONObject jsonObject = new JSONObject(str);
                Type listType = new TypeToken<ArrayList<DataBean>>() {
                }.getType();

                return new Gson().fromJson(jsonObject.getString(str), listType);

            } catch (JSONException e) {
                e.printStackTrace();
            }

            return new ArrayList();


        }

        public String getCateid() {
            return cateid;
        }

        public void setCateid(String cateid) {
            this.cateid = cateid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCoustomid() {
            return coustomid;
        }

        public void setCoustomid(String coustomid) {
            this.coustomid = coustomid;
        }

        public String getSrc() {
            return src;
        }

        public void setSrc(String src) {
            this.src = src;
        }

        public String getSrcok() {
            return srcok;
        }

        public void setSrcok(String srcok) {
            this.srcok = srcok;
        }

        public String getHref() {
            return href;
        }

        public void setHref(String href) {
            this.href = href;
        }

        public String getMark() {
            return mark;
        }

        public void setMark(String mark) {
            this.mark = mark;
        }

        public String getOption() {
            return option;
        }

        public void setOption(String option) {
            this.option = option;
        }
    }
}
